package com.thinkingstar.iads.common.tree.vo;

import javax.servlet.http.HttpServletRequest;

import org.nutz.lang.util.NutMap;

import com.thinkingstar.iads.cs.sys.enumerate.PROJECT_DESIGN_TYPE;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 设计专业节点树
 * @author Administrator
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DesignMajorDataTreeVO extends CommonTreeVO <DesignMentionDataTreeVO>{
	
	private String design_major_code; //设计专业编号
	
	private String design_major_name; //设计专业名称
	
	private static final String MAJOR_TREE_URL = "/projectCenter/treeapi/majorapi";
	
	//初始化专业树
	public DesignMajorDataTreeVO(NutMap map , String project_id){
		this.name = map.getString("major_name");
		this.node_code = map.getString("major_id");
		this.xurl = MAJOR_TREE_URL+"/"+map.getString("major_id")+"/"+project_id;
		this.node_type = PROJECT_DESIGN_TYPE.设计专业.getDesc();
		this.design_major_name =  map.getString("major_name");
		this.design_major_code = map.getString("major_code");
	}
	

}
